$(function () {

    $.ajax({

        url: "/api/footprint/list",
        method: "GET",

        success: (res) => {
            console.log(res);
            var htmlStr = template('tpl-table', res.data)
            $('.footprint').html(htmlStr)

        },
    });

    $('.footprint').on('click', '.item', function (e) {
        e.preventDefault()
        location.href = './goods.html'
    })


})